package com.feng.designpattern.factory;
/*
 * Factory Method模式 
 */

//6、买苹果是（BuyApple）对买水果（BuyFruit）这个接口的实现

public class BuyApple implements BuyFruit{

  public Fruit buyFruit(){

    return new Apple();  //返回苹果实例

}

}

